3.22 \(\int \frac {\cosh (c+d x)}{a+b x} \, dx\)

Optimal. Leaf size=51 \[ \frac {\cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (x d+\frac {a d}{b}\right )}{b}+\frac {\sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (x d+\frac {a d}{b}\right )}{b} \]

[Out]

Chi(a*d/b+d*x)*cosh(-c+a*d/b)/b-Shi(a*d/b+d*x)*sinh(-c+a*d/b)/b

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3303, 3298, 3301} \[ \frac {\cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (x d+\frac {a d}{b}\right )}{b}+\frac {\sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (x d+\frac {a d}{b}\right )}{b} \]

Antiderivative was successfully verified.

[In]

Int[Cosh[c + d*x]/(a + b*x),x]

[Out]

(Cosh[c - (a*d)/b]*CoshIntegral[(a*d)/b + d*x])/b + (Sinh[c - (a*d)/b]*SinhIntegral[(a*d)/b + d*x])/b

Rule 3298

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(I*SinhIntegral[(c*f*fz)
/d + f*fz*x])/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*e - c*f*fz*I, 0]

Rule 3301

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CoshIntegral[(c*f*fz)/d
+ f*fz*x]/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*(e - Pi/2) - c*f*fz*I, 0]

Rule 3303

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[(c*f)/d + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[(c*f)/d + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rubi steps

\begin {align*} \int \frac {\cosh (c+d x)}{a+b x} \, dx &=\cosh \left (c-\frac {a d}{b}\right ) \int \frac {\cosh \left (\frac {a d}{b}+d x\right )}{a+b x} \, dx+\sinh \left (c-\frac {a d}{b}\right ) \int \frac {\sinh \left (\frac {a d}{b}+d x\right )}{a+b x} \, dx\\ &=\frac {\cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (\frac {a d}{b}+d x\right )}{b}+\frac {\sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (\frac {a d}{b}+d x\right )}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.06, size = 49, normalized size = 0.96 \[ \frac {\cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (x d+\frac {a d}{b}\right )+\sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (x d+\frac {a d}{b}\right )}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[Cosh[c + d*x]/(a + b*x),x]

[Out]

(Cosh[c - (a*d)/b]*CoshIntegral[(a*d)/b + d*x] + Sinh[c - (a*d)/b]*SinhIntegral[(a*d)/b + d*x])/b

________________________________________________________________________________________

fricas [A]  time = 0.51, size = 95, normalized size = 1.86 \[ \frac {{\left ({\rm Ei}\left (\frac {b d x + a d}{b}\right ) + {\rm Ei}\left (-\frac {b d x + a d}{b}\right )\right )} \cosh \left (-\frac {b c - a d}{b}\right ) - {\left ({\rm Ei}\left (\frac {b d x + a d}{b}\right ) - {\rm Ei}\left (-\frac {b d x + a d}{b}\right )\right )} \sinh \left (-\frac {b c - a d}{b}\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(b*x+a),x, algorithm="fricas")

[Out]

1/2*((Ei((b*d*x + a*d)/b) + Ei(-(b*d*x + a*d)/b))*cosh(-(b*c - a*d)/b) - (Ei((b*d*x + a*d)/b) - Ei(-(b*d*x + a
*d)/b))*sinh(-(b*c - a*d)/b))/b

________________________________________________________________________________________

giac [A]  time = 0.14, size = 56, normalized size = 1.10 \[ \frac {{\rm Ei}\left (\frac {b d x + a d}{b}\right ) e^{\left (c - \frac {a d}{b}\right )} + {\rm Ei}\left (-\frac {b d x + a d}{b}\right ) e^{\left (-c + \frac {a d}{b}\right )}}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(b*x+a),x, algorithm="giac")

[Out]

1/2*(Ei((b*d*x + a*d)/b)*e^(c - a*d/b) + Ei(-(b*d*x + a*d)/b)*e^(-c + a*d/b))/b

________________________________________________________________________________________

maple [A]  time = 0.07, size = 81, normalized size = 1.59 \[ -\frac {{\mathrm e}^{\frac {d a -c b}{b}} \Ei \left (1, d x +c +\frac {d a -c b}{b}\right )}{2 b}-\frac {{\mathrm e}^{-\frac {d a -c b}{b}} \Ei \left (1, -d x -c -\frac {d a -c b}{b}\right )}{2 b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(d*x+c)/(b*x+a),x)

[Out]

-1/2/b*exp((a*d-b*c)/b)*Ei(1,d*x+c+(a*d-b*c)/b)-1/2/b*exp(-(a*d-b*c)/b)*Ei(1,-d*x-c-(a*d-b*c)/b)

________________________________________________________________________________________

maxima [A]  time = 0.36, size = 57, normalized size = 1.12 \[ -\frac {e^{\left (-c + \frac {a d}{b}\right )} E_{1}\left (\frac {{\left (b x + a\right )} d}{b}\right )}{2 \, b} - \frac {e^{\left (c - \frac {a d}{b}\right )} E_{1}\left (-\frac {{\left (b x + a\right )} d}{b}\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(b*x+a),x, algorithm="maxima")

[Out]

-1/2*e^(-c + a*d/b)*exp_integral_e(1, (b*x + a)*d/b)/b - 1/2*e^(c - a*d/b)*exp_integral_e(1, -(b*x + a)*d/b)/b

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {\mathrm {cosh}\left (c+d\,x\right )}{a+b\,x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(c + d*x)/(a + b*x),x)

[Out]

int(cosh(c + d*x)/(a + b*x), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cosh {\left (c + d x \right )}}{a + b x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(b*x+a),x)

[Out]

Integral(cosh(c + d*x)/(a + b*x), x)

________________________________________________________________________________________